home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 7198 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: rcp6.elan.af.mil!rscernix!danpop
  2. From: danpop@mail.cern.ch (Dan Pop)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Input of hex 00 on PC
  5. Date: 19 Feb 96 08:59:45 GMT
  6. Organization: CERN European Lab for Particle Physics
  7. Message-ID: <danpop.824720385@rscernix>
  8. References: <017264WYPPFRNVKUSFUY@abq-ros.com>
  9. NNTP-Posting-Host: ues5.cern.ch
  10. X-Newsreader: NN version 6.5.0 #7 (NOV)
  11.  
  12. In <017264WYPPFRNVKUSFUY@abq-ros.com> tpenner@abq-ros.com writes:
  13.  
  14.  
  15. >How can I input hex 00 to a Turbo C program?
  16. >
  17. >A book I have indicates Ctrl-l (lowercase L) or Ctrl-1 (digit one)
  18. >...I can't discern the difference with the typeface the book used.
  19.  
  20. The book is not only badly printed, it's also plain bad: CTRL-l is the
  21. same as CTRL-L (in fact, you normally press CTRL-l) and gives ASCII FF.
  22. The behaviour of CTRL-1 is entirely terminal-dependent.
  23.  
  24. >However, I tried both, and neither seems to input hex 00.
  25. >
  26. >P.S. As you can tell, I'm just learning C now.
  27.  
  28. This has nothing to do with the C language, but since I cannot redirect
  29. you to a better newsgroup: the canonical way of inputing ASCII NUL (from
  30. an ASCII keyboard) is CTRL-@.  Other combinations that may or may not
  31. work (depending on your terminal) are CTRL-Space and CTRL-`.
  32.  
  33. Dan
  34. --
  35. Dan Pop
  36. CERN, CN Division
  37. Email: danpop@mail.cern.ch 
  38. Mail:  CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
  39.